<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/11/26 0026
  Time: 17:41
  To change this template use File | Settings | File Templates.
--%>
<!DOCTYPE html>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<html>
<head>
    <title>后台管理</title>
    <jsp:include page="/commons/common-js.jsp"></jsp:include>
</head>
<body class="layui-layout-body">

<style>

</style>
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo">游戏后台管理系统</div>
        <!-- 头部区域（可配合layui已有的水平导航） -->
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item"><a href="/logout">退了</a></li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree" lay-filter="indextree">
                <li class="layui-nav-item layui-nav-itemed">
                    <a class="" href="javascript:;">用户系统</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;" url="/page/user/userall">所有玩家</a></dd>
                        <dd><a href="javascript:;" url="/page/user/online">在线玩家</a></dd>
                    </dl>
                </li>
                <sec:authorize access="hasAnyRole('ADMIN','ROOM')">
                    <li class="layui-nav-item">
                        <a class="" href="javascript:;">房间系统</a>
                        <dl class="layui-nav-child">
                            <dd><a href="javascript:;" url="/page/room/roomprofile">房间数据</a></dd>
                            <dd><a href="javascript:;" url="/page/room/gameconfig">游戏配置</a></dd>
                            <dd><a href="javascript:;" url="/page/room/roomconfig">房间配置</a></dd>

                        </dl>
                    </li>
                </sec:authorize>
     <%--           <sec:authorize access="hasAnyRole('ADMIN','CARD')">
                    <li class="layui-nav-item">
                        <a href="javascript:;">卡系统</a>
                        <dl class="layui-nav-child">
                            <dd><a href="javascript:;" url="/page/card/index">实卡管理</a></dd>
                            <dd><a href="javascript:;">列表二</a></dd>
                            <dd><a href="">超链接</a></dd>
                        </dl>
                    </li>
                </sec:authorize>--%>
                <sec:authorize access="hasAnyRole('ADMIN')">
                    <li class="layui-nav-item">
                        <a class="" href="javascript:;">管控系统</a>
                        <dl class="layui-nav-child">
                            <dd><a href="javascript:;" url="/page/control/list">新手列表</a></dd>
                            <dd><a href="javascript:;" url="/page/control/vipcontrol">vip管控</a></dd>
                            <dd><a href="javascript:;" url="/page/control/banip">ip管控</a></dd>
                            <dd><a href="javascript:;" url="/page/controller/user">限制列表</a></dd>
                        </dl>
                    </li>
                </sec:authorize>
                <sec:authorize access="hasAnyRole('ADMIN','STATIS')">
                    <li class="layui-nav-item ">
                        <a class="" href="javascript:;">统计系统</a>
                        <dl class="layui-nav-child">
                            <dd><a href="javascript:;" url="/page/statis/goldtolal">金币统计</a></dd>
                            <dd><a href="javascript:;" url="/page/statis/transtatis">转账统计</a></dd>
                        </dl>
                    </li>
                </sec:authorize>
                <sec:authorize access="hasAnyRole('ADMIN')">
                    <li class="layui-nav-item ">
                        <a class="" href="javascript:;">代理系统</a>
                        <dl class="layui-nav-child">
                            <dd><a href="javascript:;" url="/page/agent/agent_config">代理配置</a></dd>
                            <dd><a href="javascript:;" url="/page/agent/agent_total_revenue">代理总收益</a></dd>
                            <dd><a href="javascript:;" url="/page/agent/agent_revenue_detail">代理收益详情</a></dd>
                            <dd><a href="javascript:;" url="/page/agent/agent_total_proxy">代理下线详情</a></dd>
                        </dl>
                    </li>
                </sec:authorize>
                <sec:authorize access="hasAnyRole('ADMIN')">
                    <li class="layui-nav-item">
                        <a class="" href="javascript:;">系统配置</a>
                        <dl class="layui-nav-child">
                            <dd><a href="javascript:;" url="/page/sys/whitelist">白名单</a></dd>
                            <dd><a href="javascript:;" url="/page/sys/bulletin">公告</a></dd>
                            <dd><a href="javascript:;" url="/page/sys/maintenance">维护模式</a></dd>
                            <dd><a href="javascript:;" url="/page/sys/worldinfo">世界消息</a></dd>
                            <dd><a href="javascript:;" url="/page/sys/customer">客服推荐</a></dd>

                        </dl>
                    </li>
                    <li class="layui-nav-item  layui-nav-itemed">
                        <a class="" href="javascript:;">后台权限</a>
                        <dl class="layui-nav-child">
                            <dd><a href="javascript:;" url="/page/permission/adminrole">用户角色</a></dd>
                            <dd><a href="javascript:;" url="/page/permission/roleperm">角色权限</a></dd>
                            <dd><a href="javascript:;" url="/page/permission/log">操作记录</a></dd>
                            <dd><a href="javascript:;" url="/page/permission/feedback">反馈</a></dd>
              <%--              <dd><a href="javascript:;" url="/page/permission/div">文件管理</a></dd>--%>
                        </dl>
                    </li>
                    <li class="layui-nav-item  layui-nav-itemed">
                        <a class="" href="javascript:;">运营操作</a>
                        <dl class="layui-nav-child">
                            <dd><a href="javascript:;" url="/page/operate/mail">发送邮件</a></dd>
                            <dd><a href="javascript:;" url="/page/operate/mail_record">邮件记录</a></dd>
                            <dd><a href="javascript:;" url="/page/operate/updateGold">修改金币</a></dd>
                            <dd><a href="javascript:;" url="/page/room/room_jackpot">奖池配置</a></dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item">
                        <a href="javascript:;" url="/page/permission/goldrecord">流转记录</a>
                    </li>
                    <li class="layui-nav-item">
                        <a href="javascript:;" url="/page/room/RoomRecord">游戏玩家数据</a>
                    </li>
                    <li class="layui-nav-item">
                        <a href="javascript:;" url="/page/user/userdata/playrecord">游戏每局记录</a>
                    </li>
                    <li class="layui-nav-item">
                        <a href="javascript:;" url="/page/user/gameData">游戏基本数据</a>
                    </li>
                    <li class="layui-nav-item">
                        <a href="javascript:;" url="/page/room/RoomData">游戏房间数据</a>
                    </li>
                    <li class="layui-nav-item">
                        <a href="javascript:;" url="/page/room/RoomDataByRoomId">游戏房间数据(场)</a>
                    </li>
                    <li class="layui-nav-item">
                        <a href="javascript:;" url="/page/room/CountPersonData">游戏在线数据</a>
                    </li>
                </sec:authorize>
            </ul>
        </div>
    </div>

    <div class="layui-body">
        <!-- 内容主体区域 -->

        <div class="layui-tab layui-tab-card" id="indextab" lay-filter="indextab" lay-allowClose="true"
             style="height: 100%">
            <ul class="layui-tab-title">
                <sec:authorize access="hasAnyRole('ADMIN','ONLINE')">
                    <li class="layui-this">在线人数</li>
                </sec:authorize>
            </ul>
            <div class="layui-tab-content" style="height: 94%">
                <sec:authorize access="hasAnyRole('ADMIN','ONLINE')">
                    <div class="layui-tab-item layui-show">
                        <iframe class="iframe_boder" src="/page/onlinek"></iframe>
                    </div>
                </sec:authorize>
            </div>
        </div>
    </div>

</div>

<script type="application/javascript">
    layui.use('element', function () {
        var element = layui.element;
        //一些事件监听
        element.on('nav(indextree)', function (data) {
            var url = data.attr("url")
            if (url) {
                //删除原来的
                element.tabDelete('indextab', data.text());
                //添加
                element.tabAdd('indextab', {
                    title: data.text()
                    , content: `<iframe class="iframe_boder" src="` + url + `" ></iframe>`
                    , id: data.text()
                });
                //跳转
                element.tabChange('indextab', data.text());
            }
        });

    });

</script>

</body>
</html>
